package com.rc.evcharger.mapper.elec;

import com.rc.evcharger.common.base.BaseMapper;
import com.rc.evcharger.model.elec.ElecStationPrice;
import com.rc.evcharger.model.elec.ElecStationPriceExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ElecStationPriceMapper extends BaseMapper<Long, ElecStationPrice, ElecStationPriceExample> {

    ElecStationPrice queryValidElecStationPrice(Long elecStationId);

    ElecStationPrice queryElecStationPriceByDate(@Param(value = "elecStationId") Long elecStationId,@Param(value = "date") Date date);

    List<ElecStationPrice> listByStationId(Long elecStationId);

    List<ElecStationPrice> listByStationIdAndCurrent(Long elecStationId);
}